package com.simple.gateway.core.executor;

import com.simple.gateway.core.executor.result.SessionResult;
import com.simple.gateway.core.mapping.HttpStatement;

import java.util.Map;

/**
 * 项目: simple-gateway
 * <p>
 * 功能描述: 执行器
 *
 * @author: WuChengXing
 * @create: 2023-08-05 16:09
 **/
public interface Executor {

    /**
     * 执行器执行
     * @param httpStatement
     * @param params
     * @return
     * @throws Exception
     */
    SessionResult exec(HttpStatement httpStatement, Map<String, Object> params) throws Exception;
}
